home *** CD-ROM | disk | FTP | other *** search
/ Workbench Designer 2 / Workbench Designer 2.iso / time / maylandv1.0 / rexx / addin6days.rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  1996-09-15  |  649 b   |  19 lines

  1. /* SetEnv RecentState to Yes */
  2. /* (my StartNet copies the AmiNet recent file if this var. is set) */
  3. /* SetOwner is a MultiUser command, this will just make sure that it can be deleted again (by everyone) */
  4. /* Finally it adds an event in 6 days (which will execute this script) */
  5.  
  6. Options Results
  7.  
  8. Address Command
  9.  'Echo >EnvArc:RecentState "Yes"'
  10.  'SetEnv RecentState Yes'
  11.  'SetOwner EnvArc:RecentState nobody'
  12.  'Wait 5'
  13.  
  14. Address 'MaylandRexx'
  15.  SecondsToDate Date('I')*24*60*60 + Time('S') + (6*24*60*60)
  16.  AddDate SubWord(RESULT,1,3) 19 30 After '-1' Name '"Get AmiNet Recent file"' Command '"Rexx:Mayland/AddIn6Days.Rexx"' DeleteAfterUse
  17.  
  18. Exit
  19.